<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪类选择器</title>
    <style>
        /*表示已访问过的样式*/
        a:visited {
            color: darkviolet;
        }

        /*表示未访问时的样式*/
        a:link {
            color: green;
        }

        /*表示鼠标悬停时的样式*/
        a:hover {
            color: blue;
        }

        /*表示鼠标点击未松开时的样式*/
        a:active {
            color: red;
        }

        .c1 {
            width: 300px;
            height: 300px;
            background-color: red;
        }

        .c1:hover {
            background-color: green;
        }

        .c1:active {
            background-color: blue;
        }
    </style>
</head>
<body>
<a href="#">这是超链接</a>
<div class="c1"></div>
</body>
</html>